Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it possible to compile datafusion-common without default features #7625

Merged
merged 4 commits into from
Sep 22, 2023

Conversation

jonmmease
Copy link
Contributor

Which issue does this PR close?

Closes #7624

Rationale for this change

Currently datafusion-common has a default feature of parquet. But some of the parquet functionality was not guarded by #[cfg(feature = "parquet")] conditionals, so it was not possible to compile the crate with the parquet feature disabled.

What changes are included in this PR?

This PR adds conditionals. It also sets default-features = false for all of the datafusion crates that depend on datafusion-common but don't require the parquet functionality.

Are these changes tested?

By adding default-features = false to the crates that depend on datafusion-common but don't need parquet support, we ensure that it's possible to compile datafusion-common without the default features.

Are there any user-facing changes?

no

@github-actions github-actions bot added sql SQL Planner logical-expr Logical plan and expressions physical-expr Changes to the physical-expr crates optimizer Optimizer rules sqllogictest SQL Logic Tests (.slt) labels Sep 22, 2023
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @jonmmease -- this makes sense to me. I took the liberty of pushing a commit to this branch that fixes the cargo.toml formatting to get CI to pass.

@jonmmease
Copy link
Contributor Author

I took the liberty of pushing a commit to this branch that fixes the cargo.toml formatting to get CI to pass.

Thanks!

@alamb alamb merged commit dab68a3 into apache:main Sep 22, 2023
Ted-Jiang pushed a commit to Ted-Jiang/arrow-datafusion that referenced this pull request Oct 7, 2023
apache#7625)

* Fix parquet optional in datafusion-common

* disable default datafusion-common features for dependent crates that don't need parquet

* fmt

* run tomlformat

---------

Co-authored-by: Andrew Lamb <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
logical-expr Logical plan and expressions optimizer Optimizer rules physical-expr Changes to the physical-expr crates sql SQL Planner sqllogictest SQL Logic Tests (.slt)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compilation errors when disabling default features in datafusion-common
2 participants